<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
<my-cpn></my-cpn>
</div>
<script src="../js/vue.js"></script>
<script>
    const cpnC = Vue.extend({
        template: `
    <div>
    <h2>驱蚊器若<h2/>
    <p>ASDFACDAS</p>
    <p>暗室逢灯第三方</p>
    <div/>
    `
    })
    Vue.component('my-cpn',cpnC)
    let app = new Vue({
        el: '#app',
        data: {
            message: '123',
            name: '321',
        }
    })
</script>
</body>
</html>